package com.ch.dsms_backend.service;

import java.io.IOException;
import java.util.List;

import org.springframework.ui.Model;

import com.ch.dsms_backend.entity.Goods;

public interface GoodsService {
    List<Goods> showAllGoods();
    List<Goods> selectRecommendGoods();



    public String selectAllGoodsByPage(Model model, int currentPage, String act);
    public String addGoods(Goods goods, String act)
            throws IllegalStateException,IOException;
    public String toAddGoods(Goods goods,Model model);
    public String detail(Model model,Integer id,String act);
    public String delete(Integer id);


    List<Goods> selectGoodsByGnameAndGid(String gname, Integer gid);

    Goods selectAGood(Integer id);
}
